Sys.Application.add_init(appInit);

function appInit(sender, initEventArgs) {
    alert('in app init - non debug mode');
    var prm = Sys.WebForms.PageRequestManager.getInstance();
    prm.add_initializeRequest(InitializeRequest);
    prm.add_beginRequest(BeginRequest);
    prm.add_pageLoading(PageLoading);
    prm.add_pageLoaded(PageLoaded);
    prm.add_endRequest(EndRequest);
}  

function InitializeRequest() {}
function BeginRequest() {}
function PageLoading() {}
function PageLoaded() {}
function EndRequest() {}
